package com.cj.wtrails.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ━━━━━━神兽出没━━━━━━
 * 　　　┏┓　　　┏┓
 * 　　┏┛┻━━━┛┻┓
 * 　　┃　　　　　　　┃
 * 　　┃　　　━　　　┃
 * 　　┃　┳┛　┗┳　┃
 * 　　┃　　　　　　　┃
 * 　　┃　　　┻　　　┃
 * 　　┃　　　　　　　┃
 * 　　┗━┓　　　┏━┛Code is far away from bug with the animal protecting
 * 　　　　┃　　　┃    神兽保佑,代码无bug
 * 　　　　┃　　　┃
 * 　　　　┃　　　┗━━━┓
 * 　　　　┃　　　　　　　┣┓
 * 　　　　┃　　　　　　　┏┛
 * 　　　　┗┓┓┏━┳┓┏┛
 * 　　　　　┃┫┫　┃┫┫
 * 　　　　　┗┻┛　┗┻┛
 * ━━━━━━感觉萌萌哒━━━━━━
 * <p>
 * Created by yi on 2020/8/6.
 */
public class Rank implements Parcelable {

    public String address;
    public String averageHourSpeed;
    public String calories;
    public String count;
    public String distance;
    public String faceId;
    public String fastestAverageHourSpeed;
    //public FastestTimeStartBean fastestTimeStart;
    //public FastestTimeStopBean fastestTimeStop;
    public String minute;
    public String pace;
    public String rank;
    public String runwayId;
    //public StartTimeBean startTime;
    //public StopTimeBean stopTime;
    public String userImg;
    public String userName;

    /*public static class FastestTimeStartBean {

        public int date;
        public int day;
        public int hours;
        public int minutes;
        public int month;
        public int nanos;
        public int seconds;
        public int time;
        public int timezoneOffset;
        public int year;
    }

    public static class FastestTimeStopBean {
        public int date;
        public int day;
        public int hours;
        public int minutes;
        public int month;
        public int nanos;
        public int seconds;
        public int time;
        public int timezoneOffset;
        public int year;
    }

    public static class StartTimeBean {

        public int date;
        public int day;
        public int hours;
        public int minutes;
        public int month;
        public int nanos;
        public int seconds;
        public int time;
        public int timezoneOffset;
        public int year;
    }

    public static class StopTimeBean {

        public int date;
        public int day;
        public int hours;
        public int minutes;
        public int month;
        public int nanos;
        public int seconds;
        public int time;
        public int timezoneOffset;
        public int year;
    }*/

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.address);
        dest.writeString(this.averageHourSpeed);
        dest.writeString(this.calories);
        dest.writeString(this.count);
        dest.writeString(this.distance);
        dest.writeString(this.faceId);
        dest.writeString(this.fastestAverageHourSpeed);
        dest.writeString(this.minute);
        dest.writeString(this.pace);
        dest.writeString(this.rank);
        dest.writeString(this.runwayId);
        dest.writeString(this.userImg);
        dest.writeString(this.userName);
    }

    public Rank() {
    }

    protected Rank(Parcel in) {
        this.address = in.readString();
        this.averageHourSpeed = in.readString();
        this.calories = in.readString();
        this.count = in.readString();
        this.distance = in.readString();
        this.faceId = in.readString();
        this.fastestAverageHourSpeed = in.readString();
        this.minute = in.readString();
        this.pace = in.readString();
        this.rank = in.readString();
        this.runwayId = in.readString();
        this.userImg = in.readString();
        this.userName = in.readString();
    }

    public static final Parcelable.Creator<Rank> CREATOR = new Parcelable.Creator<Rank>() {
        @Override
        public Rank createFromParcel(Parcel source) {
            return new Rank(source);
        }

        @Override
        public Rank[] newArray(int size) {
            return new Rank[size];
        }
    };
}
